import fetch from '@/utils/request'

export function page(query) {
  return fetch({
    url: '/api/adminBiz/marJobs/page',
    method: 'post',
    params: query
  })
}

export function addObj(obj) {
  return fetch({
    url: '/api/adminBiz/marJobs/add',
    method: 'post',
    data: obj
  })
}

export function getObj(obj) {
  return fetch({
    url: '/api/adminBiz/marJobs/info',
    method: 'post',
    data: obj
  })
}

export function delObj(obj) {
  return fetch({
    url: '/api/adminBiz/marJobs/delete',
    method: 'post',
    data: obj
  })
}

export function putObj(obj) {
  return fetch({
    url: '/api/adminBiz/marJobs/update',
    method: 'post',
    data: obj
  })
}
export function runTask(obj) {
  return fetch({
    url: '/api/adminBiz/marJobs/run',
    method: 'post',
    data: obj
  })
}

export function pauseObj(obj) {
  return fetch({
    url: '/api/adminBiz/marJobs/pause',
    method: 'post',
    data: obj
  })
}

export function resumeObj(obj) {
  return fetch({
    url: '/api/adminBiz/marJobs/resume',
    method: 'post',
    data: obj
  })
}

export function getInfo(obj) {
  return fetch({
    url: '/api/adminBiz/marJobs/info',
    method: 'post',
    data: obj
  })
}

export function getLog(query) {
  return fetch({
    url: '/api/adminBiz/marJobLogs/page',
    method: 'post',
    params: query
  })
}
